package com.ruoyi.framework.config;

import cn.hutool.core.lang.generator.SnowflakeGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 验证码配置
 *
 * @author chenshixian
 */
@Configuration
public class SnowflakeConfig {

    @Bean(name="snowflakeGenerator")
    public SnowflakeGenerator snowflakeGenerator() {
        return new SnowflakeGenerator();
    }


}
